package com.itheima.pinda.entity.transportline;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.itheima.pinda.entity.base.Entity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
    * 线路表
    */
@Data
@EqualsAndHashCode(callSuper=true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "pd_transport_line")
public class PdTransportLine extends Entity implements Serializable {
    /**
     * 线路名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 线路编号
     */
    @TableField(value = "line_number")
    private String lineNumber;

    /**
     * 所属机构
     */
    @TableField(value = "agency_id")
    private String agencyId;

    /**
     * 线路类型
     */
    @TableField(value = "transport_line_type_id")
    private String transportLineTypeId;

    /**
     * 起始地机构id
     */
    @TableField(value = "start_agency_id")
    private String startAgencyId;

    /**
     * 目的地机构id
     */
    @TableField(value = "end_agency_id")
    private String endAgencyId;

    /**
     * 距离
     */
    @TableField(value = "distance")
    private BigDecimal distance;

    /**
     * 成本
     */
    @TableField(value = "cost")
    private BigDecimal cost;

    /**
     * 预计时间（分钟）
     */
    @TableField(value = "estimated_time")
    private BigDecimal estimatedTime;

    /**
     * 状态 0：禁用 1：正常
     */
    @TableField(value = "`status`")
    private Byte status;
}